﻿using DevExpress.Mvvm.DataAnnotations;
using HandyControl.Tools.Extension;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VGTimer.Controls
{
    [POCOViewModel]
    public class InteractiveDialogViewModel : IDialogResultable<string>
    {
        public InteractiveDialogViewModel()
        {
        }

        public Action<bool> CallBack { get; set; }
        public void Close(bool result)
        {
            CallBack.Invoke(result);
            CloseAction?.Invoke();
        }

        public virtual string Title { get; set; }

        public Action CloseAction { get; set; }

        public virtual string Result { get; set; }
    }
}
